import requests
import json

url = 'http://127.0.0.1:3000/insert'
data = {
    "collection_name": "default_collection",  # Collection name
    "vectors": [
        {
            "id": "test_1", 
            "embedding": [0.1, 0.2, 0.3], 
            "metadata": {}
        }
    ]
}  # Updated payload to use key-value format

response = requests.post(url, json=data)
print(f'状态码: {response.status_code}')
print(f'响应内容: {response.text}')